
package ejb;

import java.util.Collection;

import javax.ejb.Remote;

import jpa.CustomerJPA;
import jpa.ShippingAddressJPA;

/**
 * Session EJB Remote Interfaces
 */
@Remote
public interface CustomerFacadeRemote {
	  /**
	   * Remotely invoked method.
	   */
		public CustomerJPA login(String email, String pwd);
		public CustomerJPA logout();
		public CustomerJPA register(CustomerJPA customer);
		public Collection<CustomerJPA> findAllCustomers();
		public CustomerJPA modifyData(CustomerJPA customer);
		public CustomerJPA showCustomer(String id);
		public void changePassword(String email, String new_p, String old_p);
		public void addShippingAddress(ShippingAddressJPA shipping);
		public void updateShippingAddress(ShippingAddressJPA shipping);
		int counter();

}
